package com.ruoyi.test.serv;

import com.ruoyi.test.domain.Channel;
import com.ruoyi.test.domain.common.Result;
import com.ruoyi.test.dto.JoinChannelDto;
import com.ruoyi.test.web.ChannelController;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

public interface IChannelServ {
    Result<List<Channel>> getAllChannel();

    Result add(Channel channel);

    Result<List<String>> getAllUserByChannelName(String channelName);

    Result joinChannel(JoinChannelDto joinChannelDto);

    Result exitChannel(JoinChannelDto joinChannelDto);

    Result removeChannel(String channelName);
}
